#!/usr/bin/perl
#exec.cgi

require './remotesync-lib.pl';

my $job_to_exec=$ARGV[0];

my $rsync_lock = '/var/nas/lock/rsync';
#system($job_to_exec);
$out = `$job_to_exec`;
$rc = $?>>8;
if($rc){
	`echo $rc > /root/rsyncerr`;		
}
ABORT: 
	unlink("/var/nas/lock/rsync");
	exit 0;
	
	
